//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.huifaapp.mall.view.titlebar;

import android.app.Activity;
import android.util.DisplayMetrics;

public class DisplayMetricsTool {
    private Activity activity;
    private static DisplayMetrics dm;

    public DisplayMetricsTool(Activity activity) {
        this.activity = activity;
        dm = new DisplayMetrics();
        activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
    }

    public static int getWidth() {
        return dm.widthPixels;
    }

    public static int getHeigh() {
        return dm.heightPixels;
    }
}
